/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/Layout/index.vue'
import { RouteConfig } from 'vue-router'

const projectRouter: RouteConfig = {
  path: '/projectdb',
  component: Layout,
  redirect: '/projectdb/projectManage',
  name: 'projectdb',
  meta: {
    title: '项目看板',
    icon: 'table',
    hidden: true
  },
  // hidden: true,
  children: [
    {
      path: 'projectManage',
      // component: () => import('@/views/projectdb/projectManage'),
      name: 'projectManage',
      meta: { title: '项目管理' }
    },
    // {
    //   path: '/iframe/www.qq.com',
    //   component: Iframe,
    //   name: 'iframe',
    //   meta: { title: '你好呀', icon: 'dashboard', affix: true }
    // },
    {
      path: 'projectManageDetail/:id/:edit',
      // component: () => import('@/views/projectdb/projectManage_detail'),
      name: 'projectManageDetail',
      meta: { title: '项目详情' }
      // hidden: true
    },
    {
      path: 'milepost',
      // component: () => import('@/views/projectdb/milepost'),
      name: 'milepost',
      meta: { title: '里程碑模板' }
    },
    {
      path: 'addMilepost/:id/:edit/:name',
      // component: () => import('@/views/projectdb/addMilepost1'),
      name: 'addMilepost',
      meta: { title: '里程碑模板' }
      // hidden: true
    },
    {
      path: 'plugin',
      // component: () => import('@/views/projectdb/plugin'),
      name: 'plugin',
      meta: { title: '插件管理' }
    },
    {
      path: 'plugin_detail/:id/:name/:edit',
      // component: () => import('@/views/projectdb/plugin_detail'),
      name: 'plugin_detail',
      meta: { title: '插件详情' }
      // hidden: true
    },
    {
      path: 'dictionary',
      // component: () => import('@/views/projectdb/dictionary'),
      name: 'dictionary',
      meta: { title: '数据字典' }
    },
    {
      path: 'projectdbList',
      // component: () => import('@/views/projectdbFront/projectdbList'),
      name: '项目列表',
      meta: { title: '项目列表' }
    },
    {
      path: 'projectdbInfo',
      // component: () => import('@/views/projectdbFront/projectdbInfo'),
      name: '项目详情',
      // hidden: true,
      meta: { title: '项目详情' }
    }
  ]
}
export default projectRouter
